var BASE_DIR = __dirname + '/../../';
var BEAN = BASE_DIR + 'bean/';
var SERVICE = BASE_DIR + 'service/';

var OrderBean = require(BEAN + 'OrderBean');
var PrepayService = require(SERVICE + 'PrepayService');
var bean = new OrderBean();
bean.setOrderNo("00692016090718022636201868646111");
bean.setBuyerId("WXBuyerID");
bean.setIdType("01");
bean.setIdValue("13510434519");
bean.setOrderMoney("1");
bean.setPayment("1");
bean.setGift("0");
bean.setPaymentType("UNIONPAY-GATEWAY");
bean.setPaymentLimit("DirectPay");
bean.setProductId("123456");
bean.setProductName("充值");
bean.setProductDesc("在线支付充值");
bean.setProductUrl("http://127.0.0.1/ProductShow");
bean.setNotifyUrl("http://127.0.0.1:8086/payprod-sinmulator/MerchantNotifyResult");
bean.setClientIp("192.168.1.100");
bean.setCustomParam("key=valuue|key2=value2");
bean.setReturnUrl("http://127.0.0.1/ProductShow");

var  service = new PrepayService();
service.doService(bean);
